package com.zrrd.learn.chapter08面向对象.zaofabaidicheng;

/**
 * 舟
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/21 14:07
 */

public class boat {

    private String name;

    /**
     * 船的移动方法
     */
    public void move(String starttime, city start, city end, People p1, String endtime){
        System.out.println("本次航程"+starttime+"出发，经由"+start);
    }

    /**
     * 开放一个公共的方法 access method
     * 设置
     * set setter method
     *
     * 获取
     * get getter method
     */

    public void setName(String name) {

        this.name = name;
    }

    public String getName() {
        return this.name;
    }
}
